﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

public partial class Person_NewSubmission : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DropDownList2.DataSource = Enum.GetNames(typeof(Session));
            DropDownList2.DataBind();
            MembershipUser userOne = Membership.GetUser(HttpContext.Current.User.Identity.Name);
            Email.Text = userOne.Email;
        }
    }
    protected void StepNextButton_Click(object sender, EventArgs e)
    {
        AbstractData ad = new AbstractData();
        MembershipUser userOne = Membership.GetUser(HttpContext.Current.User.Identity.Name);            
        ad.Email=userOne.Email;
        ad.Title = Title1.Text;
        ad.Author = Author.Text;
        ad.CommEmail = Email.Text;
        ad.Key_Words = Keywords.Text;
        ad.Abstract = Abstract.Text;
        ad.Session = DropDownList2.Text;
        AbstractDataDBOption.Insert(ad);
    }
}